package com.hfkh.java45.javaoop405;

public class ComputerTest {
	public static void main(String[] args) {
		CPU cpu = new CPUFactory();
		EMS ems = new EMSFactory();
		HardDisk hardDisk = new HardDiskFactory();
		Computer computer = new Computer();
		computer.setCpu(cpu);
		computer.setEms(ems);
		computer.setHardDisk(hardDisk);
		computer.showInfo();
	}
}
